package com.zh.admin.notice.service.Impl;

import com.zh.admin.notice.dao.noticeAdminDao;
import com.zh.admin.notice.service.noticeAdminService;
import com.zh.pojo.Notice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class noticeAdminServiceImpl implements noticeAdminService {

    @Autowired
    private noticeAdminDao noticeAdminDao;

    @Override
    public List<Notice> selectAllNotice() {
        return noticeAdminDao.selectAllNotice();
    }

    @Override
    public Notice selectNoticeById(Integer id) {
        return noticeAdminDao.selectNoticeById(id);
    }

    @Override
    public int insertNotice(Notice notice) {
        return noticeAdminDao.insertNotice(notice);
    }

    @Override
    public int deleteNoticeById(Integer id) {
        return noticeAdminDao.deleteNoticeById(id);
    }

    @Override
    public int updateNoticeById(Notice notice) {
        return noticeAdminDao.updateNoticeById(notice);
    }
}
